import request from '@/utils/request'

export default {
  getBannerList() {
    return request({
      url: `/banner/getBanner`,
      method: 'get'
    })
  },

  addBanner(addObj){
    return request({
      url: `/banner/addBanner`,
      method: 'post',
      data: addObj
    })
  },

  deleteBanner(bannerId){
    return request({
      url: `/banner/deleteBanner/${bannerId}`,
      method: 'delete',
    })
  }

}
